import models
import os
import sys
import xmmsclient
import xmmsqt4
from PyQt4 import QtCore, QtGui
from tagger_ui import Ui_Form

class Tagger(Ui_Form, QtGui.QWidget):
    def __init__(self):
        QtGui.QWidget.__init__(self)
        self.setupUi(self)
        """self.connect(self.dynamicButtonBox,
                     QtCore.SIGNAL("accepted()"),
                     self.dynamicRetag)
        self.connect(self.staticButtonBox,
                     QtCore.SIGNAL("accepted()"),
                    self.staticRetag)
                    """
    def dynamicRetag(self):
        print self.patternEdit.text()
        self.close()

    def staticRetag(self):
        artist = self.artistEdit.text()
        album = self.albumEdit.text()
        print "artist", artist
        print "album", album
        self.close()

if __name__ == "__main__":
    app = QtGui.QApplication(sys.argv)
    tagger = Tagger()
    tagger.show()
    sys.exit(app.exec_())
    
